﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace spring.salesman.data
{
    public class DbContextFactory : IDbContextFactory
    {
        private readonly UserDbContext c;
        public DbContextFactory()
        {
            c = new UserDbContext();
        }

        public UserDbContext GetContext()
        {
            return c;
        }
    }

    public interface IDbContextFactory
    {
        UserDbContext GetContext();
    }
}
